Configuring cache memory from a storage controller

ABSTRACT

Disclosed are a storage controller, and a method of operating a storage controller, for interfacing between host systems and a storage devices system. The storage controller includes a first cluster including a first processor and a first cache, and a second cluster including a second processor and a second cache. The method comprises the step of directing data from the host systems through first and second data paths to the storage system. The first processor and cache are associated with the first data path, and the second processor and cache are associated with the second data path. Under one set of conditions, the controller enters a failover mode, wherein data directed to the first data path are routed to the second data path. Under another set of conditions, the controller deconfigures the first cache without entering the failover mode.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention generally relates to a storage controller that interfaces between host computer systems and a direct access storage device system. More specifically, the invention relates to deconfiguring cache memory from such a storage controller.

2. Background Art

In a large distributed computer system, a plurality of host computers and devices are typically connected to a number of direct access storage devices (DASDs) comprised of hard disk drives (HDDs). The DASDs may be organized in a redundant array of independent disks, i.e., a RAID array. A RAID array is comprised of multiple, independent disks organized into a large, high-performance logical disk. A controller stripes data across the multiple disks in the array and accesses the disks in parallel to achieve higher data transfer rates. However, utilizing multiple disks in an array increases the risk of failure. The solution in the art is to employ redundancy in the form of error-correcting codes to tolerate disk failures.

Not only is there is a risk associated with the failure of a hard disk drive in a DASD system such as a RAID array, but there is also a risk of failure at a point within a storage controller which controls read and write operations between host computers and the DASDs. The conventional storage controller is typically designed to handle hardware failure. One such storage control designed to handle certain hardware failures is the clusters, each of which provides for selective connection between a host computer and a DASD. Each cluster has a cache and a non volatile storage unit (NVS). The cache buffers frequently used data. When a request is made to write data to a DASD attached to the storage controller, the storage controller may cache the data and delay writing the data to a DASD. Caching data can save time as writing operations involve time consuming mechanical operations. The cache and NVS in each cluster can intercommunicate, allowing for recovery and reconfiguration of the storage controller in the event that one of the memory elements is rendered unavailable. For instance, if one cluster and its cache fails, the NVS in the other cluster maintains a back-up of the cache in the failed cluster.

These dual-cluster storage controllers may also failover to a single node configuration if a memory upgrade is required. During these periods of failover, the system is running on a single node configuration, which is less fault tolerant than the normal dual node configuration.

SUMMARY OF THE INVENTION

An object of this invention is to improve storage controllers for interfacing between host computer systems and a direct access storage device system.

Another object of the invention is to maintain dual cluster fault tolerance in a dual cluster storage controller even during a memory fail or a memory upgrade.

A further object of the present invention is to deconfigure a cache memory, of a dual cluster storage controller, without failing over to the other cluster, thus maintaining dual cluster fault tolerance.

These and other objectives are attained with a storage controller, and a method of operating a storage controller, for interfacing between a plurality of host systems and a direct access storage devices system. The storage controller includes a first cluster including a first processor and a first cache, and a second cluster including a second processor and a second cache. The method comprise the step of directing data from the host systems through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path. Under a first set of defined conditions, the controller enters into a failover mode, wherein data directed to the first data path are routed to the second data path. Under a second set of defined conditions, the controller deconfigures the first cache without entering the failover mode.

The first cache includes a series of memory pages; and in a preferred embodiment, the deconfiguring step includes the steps of identifying selected pages of the first cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the first cache.

Further benefits and advantages of the invention will become apparent from a consideration of the following detailed description, given with reference to the accompanying drawings, which specify and show preferred embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a block diagram of a storage controller with which the present invention may be practiced.

FIG. 2 schematically shows the control structure and memory configuration of one of the caches of the storage controller of FIG. 1.

FIG. 3 is a flow chart illustrating a preferred procedure for deconfiguring the cache memory.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

In the following description, reference is made to the accompanying drawings which form a part thereof, and in which is shown, by way of illustration, a preferred embodiment of the present invention. It is understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present invention.

Hardware Environment and Architecture of the Storage Controller

FIG. 1 illustrates a block diagram of the components and architecture of the preferred embodiment of a storage controller 2 which interfaces between host computers or devices (not shown) and DASDs 46, 48, which include multiple RAID arrays. In preferred embodiments, the DASDs are magnetic storage units such as hard disk drives. The host computers and devices are connected to host adaptors 4, 6, 24, 26 via a bus interface (not shown), such as a SCSI bus interface. The host adaptors 4, 6, 24, 26 may be comprised of an Enterprise System Connection (ESCON) adaptor which provides access to ESCON channels and connections. Each host adaptor 4, 6, 24, 26 may be comprised of a series of host adaptors which connect to a host system.

In preferred embodiments, the storage controller 2 is divided into two clusters, cluster 0 and cluster 1. Cluster 0 is comprised of host adaptors 4, 6, a non-volatile storage unit (NVS) 8, a cache 10, a processor 12, a device adaptor bus 14, and device adaptors 16, 18, 20, 22. Cluster 1 is comprised of host adaptors 24, 26, an NVS 28, a cache 30, a processor 32, a device adaptor bus 34, and device adaptors 36, 38, 40, 42. A host adaptor bridge 44 interfaces the components of cluster 0 with cluster 1. The host adaptors 4, 6, 24, 26 are connected to the host adaptor bridge 44. In preferred embodiments, the bridge 44 is a dual master bus which may be controlled by one of the processors 12, 32 or one of the host adaptors 4, 6, 24, 26. In other embodiments, the host adaptor bridge 44 may include bridge technology to allow the bus to operate at its own clock speed and provide a buffer to buffer data transferred across the bridge 44. The bridge 44 interconnects the host adaptor 4, 6, 24, 26 with processors 12, 32. In preferred embodiments, the processors 12, 32 are symmetrical multi-processors, such as the IBM RS/6000 processor. Each processor 12, 32 maintains information on the configuration of the other cluster in order to re-route data transfers directed toward the other cluster.

The caches 10, 30 may be external to the processors 12, 32 or included in the processor 12, 32 complex. A processor 12, 32 in one cluster can communicate with the other processor, NVS 8, 28, and cache 10, 30 in the other cluster via the host adaptor bridge 44. In preferred embodiments, the NVS 8, 28 is comprised of a random access electronic storage with a battery backup. The cache 10, 30, in comparison, is a volatile storage unit that cannot maintain data in the event of a power failure.

Device adaptor bus 14 interconnects the processor 12 with the device adaptors 16, 18, 20 22, and device adaptor bus 34 interconnects processor 32 with device adaptors 36, 38, 40, 42. The device adaptors 16, 18, 20 22, 36, 38, 40 42 interface between the storage controller and DASDs, or RAID array of hard disk drives. In preferred embodiments, the DASDs may be interconnected in a loop topology including multiple RAID arrays.

Because one device adaptor from each cluster 0, 1 is attached to each loop of DASDs, failure in one cluster and/or the device adaptors associated with the failed cluster will not prevent the functioning cluster from accessing the loop. Thus, no single point of failure in a cluster and/or in a device adaptor will prevent the other cluster from accessing a group of DASDs. Moreover, if a device adaptor, such as device adaptor 22, fails in a cluster that is otherwise functioning properly, then the re-routing to the other device adaptor 36 can occur at the device adaptor level. Alternatively, the failure of a device adaptor can be treated as a failure by the entire cluster, thereby transferring control over to the functioning cluster to access the DASD.

As mentioned above, when the storage controller runs in a single node configuration, the system is less fault tolerant than when the system is in the dual node configuration. It is, therefore, highly desirable to reduce the number of circumstances in which the system runs in the single node configuration.

In accordance with the present invention, a procedure is provided to deconfigure cache memory without failing over to the other cluster, thus maintaining dual cluster fault tolerance. For purposes of example, this procedure will be explained with respect to cache 10. As will be understood by those of ordinary skill in the art, cache 30 may be constructed and operated in the same manner as cache 10.

With reference to FIG. 2, the data in cache 10 is structured in a logical track fashion. For example, in an ESS implementation, one logical track 50 contains seventeen discontiguous 4 K pages 52. There is a control structure 54 (referred to as a segment control block) for each 4 K page and another control structure 56 (referred to as the directory control block) for each track.

Removal of Cache Memory from the Controller

FIG. 3 shows a preferred procedure for removing cache memory from the controller. At step 60, the pages to be removed within a range are identified; and at step 62, a track id is stored in the segment control block 54 to identify which directory control block 56 pertains to the track containing the segment. At step 64, a determination is made as to whether the track is modified or unmodified. If the track is unmodified, then at step 66, the page is invalidated and marked unavailable. If the track is modified, then at step 70, a determination is made as to whether the track is pinned or bound.

If the track is modified but not pinned or bound, the track, at step 72, is grouped with other tracks for destage. Following a successful destage, the track, at step 74, becomes unmodified and the page is invalidated and marked unavailable. However, if the track is pinned or bound the memory management component proceed through steps 76, 80, 82 and 84. Specifically, at step 76, the management component allocates another free page or pages which are outside of the range; and at step 80, the track is marked busy. At step 82, the data is copied from the old pages to the new pages, and at step 84, the old pages are marked unavailable. Once all the required pages are marked unavailable, the memory, at step 86, can be removed without failover to the other cluster.

While it is apparent that the invention herein disclosed is well calculated to fulfill the objects stated above, it will be appreciated that numerous modifications and embodiments may be devised by those skilled in the art, and it is intended that the appended claims cover all such modifications and embodiments as fall within the true spirit and scope of the present invention. 

1. A method of operating a storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller including a first cluster including a first processor and a first cache, and a second cluster including a second processor and a second cache, the method comprising: directing data from the host system through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; under a first set of define conditions, entering into a failover mode, wherein data directed to the first data path are routed to the second data path; and under a second set of defined conditions, deconfiguring the first cache without entering the failover mode; wherein the first cache includes a series of memory pages, and the deconfiguring step includes the steps of; identifying selected pages of the first cache; marking each of said selected pages as unavailable; and after all of said selected pages unavailable, removing the selected pages from the first cache; wherein the memory pages are on a series of tracks in the first cache, and the first cache further includes a multitude of segment control blocks, each segment control block being associated with one of the memory pages, and a multitude of directory control blocks, each directory control block being associated with one of said tracks, and wherein: the selected pages are all on the same track; and the identifying step includes the step of, for each of the selected pages, identifying in the directory control block associated with the page, the segment control block associated with the page.
 2. A method of operating a storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller including a first luster including first processor and a first cache, and a second cluster including a second processor and a second cache, the method comprising: directing data from the host systems through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; under a first set of defined conditions, entering into a failover mode, wherein data directed to the first data path are routed to the second data path; and under a second set of defined conditions, deconfiguring the first cache without entering the failover mode; wherein the first cache includes a series of memory pages, and the deconfiguring step includes the steps of; identifying selected pages of the first cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the first cache; wherein the step of marking each of the pages as unavailable includes the steps of, for each of the selected pages, determining whether the page is modified or unmodified; if the page is unmodified, marking the page as unavailable; and if the page is modified, processing the page according to a defined routine, and then marking the page as unavailable; and wherein the step of processing the page includes the steps of: determining whether the page is pinned or bound; and if the page is not pinned or bound, destaging the page.
 3. A method according to claim 2, wherein the processing step includes the further step of, if said each page is not pinned or bound, copying data from said each page onto a new page, and then marking said each page as unavailable.
 4. A method of deconfiguring a memory cache, said memory cache including a series of memory pages, the method comprising the step of: identifying selected pages of the cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the cache; wherein the memory pages are on a series of tracks in the cache, and the cache further includes a multitude of segment control blocks, and a multitude of directory control blocks, each segment control block being associated with one of the memory pages, and each directory control block being associated with one of said tracks; and wherein: the selected pages are all on the same track; and the identifying step includes the step of, for each of the selected pages, identifying in the directory control block associated with the page, the segment control block associated with the page.
 5. A method of deconfiguring a memory cache; said memory cache including a series of memory pages, the method comprising the step of: identifying selected pages of the cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the cache; wherein the step of marking each of the pages as unavailable includes the steps of, for each of the selected pages, determining whether the page is modified or unmodified; if the page is unmodified, marking the page as unavailable; and if the page is modified, processing the page according to a defined routine, and then marking the page as unavailable; and wherein the step of processing the page includes the steps of: determining whether the page is pinned or bound; and if the page is not pinned or bound, destaging the page.
 6. A method according to claim 5, wherein the processing step includes the further step of, if said each page is not pinned or bound, copying data from said each page onto a new page, and then marking said each page as unavailable.
 7. A storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller comprising: a first cluster including a first processor and a first cache; a second cluster including a second processor and a second cache; means for directing data from the host systems through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; means for entering, under a first set of defined conditions, into a failover mode, wherein data directed to the first data path are routed to the second data path; and means for deconfiguring the first cache, under a second set of defined conditions, without entering the failover mode; wherein the first cache includes a series of memory pages; and the means for deconfiguring includes; i) means for identifying selected pages of the first cache, ii) means for marking each of said selected pages as unavailable, and iii) means for removing the selected pages from the first cache after all of said selected pages are marked as unavailable; and wherein: the memory pages are on a series of tracks in the first cache; the first cache further includes a multitude of segment control blocks, each segment control block being associated with one of the memory pages, and a multitude of directory control blocks, each directory control block being associated with one of said tracks; the selected pages are all on the same track; and the identifying means includes means for identifying in the directory control block associated with each of the selected pages, the segment control block associated with said each page.
 8. A storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller comprising: a first cluster including a first processor and a first cache; a second cluster including a second processor and second cache; means for directing data from the host systems through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; means for entering, under a first set of defined conditions, into a failover mode, wherein data directed to the first data path are routed to the second data path; and means for deconfiguring the first cache, under a second set of defined conditions, without entering the failover mode; wherein the first cache includes a series of memory pages; and the means for deconfiguring includes: i) means for identifying selected pages of the first cache, ii) means for marking each of said selected pages as unavailable, and iii) means for removing the selected pages from the first cache after all of said selected pages are marked as unavailable; and wherein the marking includes: means for determining for each of the selected pages, whether the page is modified or unmodified; means for marking the page as unavailable if the page is unmodified; and means for processing the page according to a defined routine if the page is modified, and then marking the page as unavailable; and wherein the means for processing includes: means for determining whether the page is pinned or bound; and means for destining the page if the page is not pinned or bound.
 9. A storage controller according to claim 8, wherein the means for processing further includes means for copying data from said each page onto a new page, if said each page is not pinned or bound, and then marking said each page as unavailable.
 10. A system for deconfiguring said memory cache, said memory cache including a series of memory pages, the controller comprising: means for identifying selected pages of the cache; means for marking each of said selected pages as unavailable; and means for removing the selected pages from the cache after all of said selected pages are marked as unavailable, and wherein the memory pages are on a series of tracks in the cache, and the cache further includes a multitude of segment control blocks, and a multitude of directory control blocks, each segment control block being associated with one of the memory pages, and each directory control block being associated with one of said tracks; and wherein: the selected pages are all on the same track; and the means for identifying includes means for identifying in the directory control block associated with each of the selected pages, the segment control block associated with the page.
 11. A system according to claim 10, wherein the marking means includes: means for determining whether each of the selected pages is modified or unmodified; means for marking the page as unavailable if the page is unmodified; and means for processing the page according to a defined routine, if the page is modified, and then marking the page as unavailable.
 12. A system according to claim 11, wherein the means for processing includes: means for determining whether the page is pinned or bound; and means for destaging the page if the page is not pinned or bound.
 13. A system according to claim 12, wherein the means for processing step further includes means for copying data from said each page onto a new page, if said each page is not pinned or bound, and then marking said each page as unavailable.
 14. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for operating a storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller including a first cluster including a first processor and a first cache, and a second cluster including a second processor and a second cache, said method steps comprising; directing data from the host systems through first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; under a first set of defined conditions, entering into a failover mode, wherein data directed to the first data path are routed to the second data path; and under a second set of defined conditions, deconfiguring the first cache without entering the failover mode; wherein the first cache includes a series of memory pages, and the deconfiguring step includes the steps of; identifying selected pages of the first cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the first cache; and wherein the memory pages are on a series of tracks in the first cache, and the first cache further includes a multitude of segment control blocks, each segment control block being associated with one of the memory pages, and a multitude of directory control blocks, each directory control block being associated with one of said tracks, and wherein: the selected pages are all on the same track; and the identifying step includes the step of, for each of the selected pages, identifying in the directory control block associated with the page, the segment control block associated with the page.
 15. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for operating a storage controller for interfacing between a plurality of host systems and a direct access storage devices system, the storage controller including a first cluster including a first processor and a first cache, and a second cluster including a second processor and a second cache, said method steps comprising: directing data from the host systems through a first and second data paths in the storage controller to the direct access storage system, wherein the first processor and the first cache are associated with the first data path, and the second processor and the second cache are associated with the second data path; under a first set of defined conditions, entering into a failover mode, wherein data directed to the first data path are routed to the second data path; and under a second set defined conditions, deconfiguring the first cache without entering the failover mode; wherein the first cache includes a series of memory pages, and the deconfiguring step includes the steps of; identifying selected pages of the first cache; marking each of said selected pages as unavailable; and after all of said selected pages are marked as unavailable, removing the selected pages from the first cache; wherein the step of marking each of the pages as unavailable includes the step of, for each of the selected pages, determining whether the pages is modified or unmodified; if the pages is unmodified, marking the pages as unavailable; and if the page is modified, processing the page according to a defined routine, and then marking the page as unavailable; and wherein the step of processing the page includes the steps of: determining whether the page is pinned or bound; and if the page is not pinned or bound, destaging the page.
 16. A program storage device according to claim 15, wherein the processing step includes the further step of, if said each page is not pinned or bound, copying data from said each page onto a new page, and then marking said each page as unavailable. 